<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String path = request.getContextPath();
%>
<html lang="zh-cn">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="format-detection" content="telephone=no, email=no" />
	
 <!-- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit"> -->
    <title>登录</title>  
    <link rel="stylesheet" href="<%=path %>/admin/css/pintuer.css">
    <link rel="stylesheet" href="<%=path %>/admin/css/admin.css">
    <script type="text/javascript">
    var paths = '<%=path%>';
    </script>
    <script src="<%=path %>/admin/js/jquery.js"></script>
    <script src="<%=path %>/admin/js/pintuer.js"></script>  
	<script src="<%=path %>/admin/js/admin.js"></script>
		
</head>
<body>
	<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加管理员</strong></div>
  <div class="body-content">
    <form id="planForm" method="post" class="form-x" action="<%=path %>/admin/add">  
      <div class="form-group">
        <div class="label">
          <label>管理员姓名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50 clear" value="" name="adUser" id="adUser" data-validate="required:请输入姓名" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>登录名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50 clear" value="" name="adName" id="adName" data-validate="required:请输入登录名" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>密码：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50 clear" value="" name="adPassword" id="adPassword" data-validate="required:请输入密码" />
          <div class="tips"></div>
        </div>
      </div>   
            <div class="form-group">
        <div class="label">
          <label>权限级别：</label>
        </div>
        <div class="field">
        	<select class="input w50" id="" name="adRoleNo" data-validate="required:请选择权限">
        		<option value="HIGH">管理员</option>
        		<option value="AUDIT">审核</option>
        		<option value="LOW" selected="selected">普通</option>
        	</select>
          <!-- <input type="text" class="input w50 clear" value="" name="adPassword" id="adPassword" data-validate="required:请输入密码" /> -->
          <div class="tips"></div>
        </div>
      </div> 
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="button" onclick="javascript:sub();"> 提交</button>
          <input type="hidden" name="subTag" id="subTag"/>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
 <script type="text/javascript" src="<%=path%>/admin/js/layer/layer.js" ></script>
<script type="text/javascript">
	$(function(){
		var subTag = '${subTag}';
		if(subTag==1){
			layer.msg('操作成功！');
		}else if(subTag== 2){
			layer.msg('系统忙！');
		}
	});
	function sub(){

		$("#planForm").submit();
		
	};
	


</script>

</html>